package io.ooad.jenkins.shuren;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import retrofit2.Response;

/**
 * Created by yyang on 2017/1/3.
 */
public abstract class BaseCommand {

    private ShurenyunService service;
    private ObjectMapper mapper = new ObjectMapper();

    public BaseCommand(ShurenyunService service) {
        this.service = service;
    }

    public ShurenyunService getService() {
        return service;
    }

    public ObjectMapper getMapper() {
        return mapper;
    }

    public abstract Response<JsonNode> execute();
}
